package top.ajun.mall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.ajun.common.utils.PageUtils;
import top.ajun.mall.ware.entity.WareSkuEntity;

import java.util.Map;

/**
 * 商品库存
 *
 * @author AJun
 * @email 1241088536@qq.com
 * @date 2020-11-24 22:35:11
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageByCondition(Map<String, Object> params);

    /**
     * 将成功采购的进行入库:
     *
     * @param skuId  商品 id
     * @param wareId 仓库 id
     * @param skuNum 采购数量
     */
    void addStock(Long skuId, Long wareId, Integer skuNum);

}

